package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SupplierDao {


    List<Supplier> getSupplierList(@Param("offSet") int offSet, @Param("pageRow") Integer rows, @Param("supplierName") String supplierName);


    Object getSupplierCount(@Param("supplierName") String supplierName);


    Integer saveSupplier(Supplier supplier);


    Integer updateSupplier(Supplier supplier);


    Supplier getSupplierById(Integer supplierId);


    Integer deleteSupplier(Integer supplierId);


    List<Supplier> getSupplierListByNameLike(@Param("q") String q);
}
